<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BStatusBar</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BStatusBar">
			<h1>BStatusBar</h1>
			<p>继承自<a href="BWidget.html">BWidget</a></p>
			<p id="resume">BStatusBar用于提示工作状态，提示文本描述具体情况。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"/><td><a href="#BStatusBar(BWidget*)">BStatusBar</a>(BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BStatusBar(Form,BWidget*)">BStatusBar</a>(Form form, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BStatusBar(const BString&,BWidget*)">BStatusBar</a>(const BString& text, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BStatusBar(BImage*,BWidget*)">BStatusBar</a>(BImage* image, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BStatusBar(BImage*, const BString&,BWidget*)">BStatusBar</a>(BImage* image, const BString& text, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#~BStatusBar()">~BStatusBar</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setForm(Form)">setForm</a>(Form form);</td></tr>
				<tr><td align="right">Form </td><td><a href="#form()">form</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setAlign(Align)">setAlign</a>(Align align);</td></tr>
				<tr><td align="right">Align </td><td><a href="#align()">align</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setImage(BImage*)">setImage</a>(BImage* image);</td></tr>
				<tr><td align="right">BImage* </td><td><a href="#image()">image</a>();</td></tr>
				<tr><td align="right">const BImage* </td><td><a href="#image()">image</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setImageSize(const BSize&)">setImageSize</a>(const BSize& imageSize);</td></tr>
				<tr><td align="right">const BSize&amp; </td><td><a href="#imageSize()">imageSize</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setText(const BString&)">setText</a>(const BString& text);</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#text()">text</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setTextFormat(BTextFormat*)">setTextFormat</a>(BTextFormat* textFormat);</td></tr>
				<tr><td align="right">const BTextFormat* </td><td><a href="#textFormat()">textFormat</a>() const;</td></tr>
				<tr><td align="right">BTextFormat* </td><td><a href="#textFormat()">textFormat</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setTimeout(BReal)">setTimeout</a>(BReal timeout);</td></tr>
				<tr><td align="right">BReal </td><td><a href="#timeout()">timeout</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setFadeTime(BReal)">setFadeTime</a>(BReal fadeTime);</td></tr>
				<tr><td align="right">BReal </td><td><a href="#fadeTime()">fadeTime</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#showMessage(const BString&,BReal)">showMessage</a>(const BString& message, BReal timeout = -1);</td></tr>
				<tr><td align="right">void </td><td><a href="#showMessage(BImage*, const BString&,BReal)">showMessage</a>(BImage* image, const BString& message, BReal timeout = -1);</td></tr>
				<tr><td align="right">virtual BSize </td><td><a href="#sizeHint()">sizeHint</a>() const;</td></tr>
			</table>
			<h2>protected</h2>
			<table id="protected">
				<tr><td align="right">virtual void </td><td><a href="#resizeEvent(const BEvent&)">resizeEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#updateEvent(const BEvent&)">updateEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#styleEvent(const BEvent&)">styleEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#freshEvent(const BEvent&)">freshEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#paintEvent(const BEvent&)">paintEvent</a>(const BEvent& event);</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2><p>BStatusBar用于提示工作状态，提示文本描述具体情况。通过对显示形式和对齐方式改变提示语的呈现方式。有时需要提示语在一定时限内显示则可设置其超时时间，若在超时时提示文本不是直接消失而是慢慢淡出，则可以设置其淡出时间。</p><h4>信号表：</h4><table>
					<tr><td>Signal_AlignChanged</td><td>内容布局的对齐方式被改变时发出，值为：Align align。</td></tr>
					<tr><td>Signal_ImageChanged</td><td>图像被改变时发出，值为：BImage* image。</td></tr>
					<tr><td>Signal_TextChanged</td><td>文本被改变时发出，值为：BString text。</td></tr>
					<tr><td>Signal_FormatChanged</td><td>文本格式对象改变时发出，值为：BTextFormat* textFormat。</td></tr>
					<tr><td>Signal_TimeChanged</td><td>超时时间被改变时发出，值为：BReal timeout。</td></tr></table>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BStatusBar(BWidget*)">
				<h3>BStatusBar(BWidget* parent = 0);</h3><p>构造一个状态条，parent指示其父控件。</p>
			</div>
			<div id="BStatusBar(Form,BWidget*)">
				<h3>BStatusBar(Form form, BWidget* parent = 0);</h3><p>构造一个状态条，form指示其显示形式，parent指示其父控件。</p>
			</div>
			<div id="BStatusBar(const BString&,BWidget*)">
				<h3>BStatusBar(const BString&amp; text, BWidget* parent = 0);</h3><p>构造一个状态条，text指示其提示文本，parent指示其父控件。</p>
			</div>
			<div id="BStatusBar(BImage*,BWidget*)">
				<h3>BStatusBar(BImage* image, BWidget* parent = 0);</h3><p>构造一个状态条，image指定图像，parent指示其父控件。</p>
			</div>
			<div id="BStatusBar(BImage*, const BString&,BWidget*)">
				<h3>BStatusBar(BImage* image, const BString&amp; text, BWidget* parent = 0);</h3><p>构造一个状态条，image指定图像，text指示其提示文本，parent指示其父控件。</p>
			</div>
			<div id="~BStatusBar()">
				<h3>~BStatusBar();</h3><p>析构一个状态条。</p>
			</div>
			<div id="setForm(Form)">
				<h3>void setForm(Form form);</h3><p>设置显示形式。</p>
			</div>
			<div id="form()">
				<h3>Form form() const;</h3><p>获得显示形式。</p>
			</div>
			<div id="setAlign(Align)">
				<h3>void setAlign(Align align);</h3><p>设置提示内容的对齐方式。</p>
			</div>
			<div id="align()">
				<h3>Align align() const;</h3><p>获得提示内容的对齐方式。</p>
			</div>
			<div id="setImage(BImage*)">
				<h3>void setImage(BImage* image);</h3><p>设置图像。</p>
			</div>
			<div id="image()">
				<h3>BImage* image();</h3><p>获得图像。</p>
			</div>
			<div id="image()">
				<h3>const BImage* image() const;</h3><p>获得图像。</p>
			</div>
			<div id="setImageSize(const BSize&)">
				<h3>void setImageSize(const BSize&amp; imageSize);</h3><p>设置图像尺寸。</p>
			</div>
			<div id="imageSize()">
				<h3>const BSize&amp; imageSize() const;</h3><p>获得图像尺寸。</p>
			</div>
			<div id="setText(const BString&)">
				<h3>void setText(const BString&amp; text);</h3><p>设置提示语文本。</p>
			</div>
			<div id="text()">
				<h3>const BString&amp; text() const;</h3><p>获得提示语文本。</p>
			</div>
			<div id="setTextFormat(BTextFormat*)">
				<h3>void setTextFormat(BTextFormat* textFormat);</h3><p>设置文本格式化对象。</p>
			</div>
			<div id="textFormat()">
				<h3>const BTextFormat* textFormat() const;</h3><p>获得文本格式化对象。</p>
			</div>
			<div id="textFormat()">
				<h3>BTextFormat* textFormat();</h3><p>获得文本格式化对象。</p>
			</div>
			<div id="setTimeout(BReal)">
				<h3>void setTimeout(BReal timeout);</h3><p>设置提示的超时时间。</p>
			</div>
			<div id="timeout()">
				<h3>BReal timeout() const;</h3><p>获得提示的超时时间。</p>
			</div>
			<div id="setFadeTime(BReal)">
				<h3>void setFadeTime(BReal fadeTime);</h3><p>设置提示语在超时的时候的淡出时间。</p>
			</div>
			<div id="fadeTime()">
				<h3>BReal fadeTime() const;</h3><p>获得提示语在超时的时候的淡出时间。</p>
			</div>
			<div id="showMessage(const BString&,BReal)">
				<h3>void showMessage(const BString&amp; message, BReal timeout = -1);</h3><p>指定要显示的文本，timeout指定超时时间。</p>
			</div>
			<div id="showMessage(BImage*, const BString&,BReal)">
				<h3>void showMessage(BImage* image, const BString&amp; message, BReal timeout = -1);</h3><p>指定要显示的图像和文本，timeout指定超时时间。</p>
			</div>
			<div id="sizeHint()">
				<h3>virtual BSize sizeHint() const;</h3><p>计算合适的尺寸，需要可容纳图像，以及10个字符的宽度。</p>
			</div>
			<div id="resizeEvent(const BEvent&)">
				<h3>virtual void resizeEvent(const BEvent&amp; event);</h3><p>标记此状态条为需要重新调整。</p>
			</div>
			<div id="updateEvent(const BEvent&)">
				<h3>virtual void updateEvent(const BEvent&amp; event);</h3><p>更新超时和淡出时间。</p>
			</div>
			<div id="styleEvent(const BEvent&)">
				<h3>virtual void styleEvent(const BEvent&amp; event);</h3><p>样式取值：</p><table>
					<tr><td>Value_Text</td><td>取值为提示文本，值为：BString text。</td></tr>
					<tr><td>Value_Color</td><td>取值为颜色，值为：BColor color。</td></tr>
					<tr><td>Value_Image</td><td>取值为图像，值为：BImage* image。</td></tr>
					<tr><td>Value_Image_Size</td><td>取值为图像尺寸，值为：BSize imageSize。</td></tr>
					<tr><td>Value_Align</td><td>取值为对齐方式，值为：Align align。</td></tr>
					<tr><td>Value_Spacing</td><td>取值为图像与文本的间隔，值为：int spacing。</td></tr></table>
			</div>
			<div id="freshEvent(const BEvent&)">
				<h3>virtual void freshEvent(const BEvent&amp; event);</h3><p>重新调整显示内容布局。</p>
			</div>
			<div id="paintEvent(const BEvent&)">
				<h3>virtual void paintEvent(const BEvent&amp; event);</h3><p>绘制图像与文本，并同步淡出效果。</p>
			</div>
		</div>
	</body>
</html>